import {get,post} from "@/utils/request"

export const findcabinetmachine = (data) => get("/cabinetmachine/cabinetmachine/list",data)
export const updatechecked = (id) => get("/cabinetmachine/cabinetmachine/updatechecked/"+id)
export const updatecheckedzero = (id) => get("/cabinetmachine/cabinetmachine/updatecheckedzero/"+id)
export const updateisCollection = (ids) => get("/cabinetmachine/cabinetmachine/updateisCollection/"+ids)


/* 未收藏  */
export const Unfavorites = (id) => get("/cabinetmachine/cabinetmachine/Unfavorites/"+id)

/*  已收藏 */
export const Bookmarked = (id) => get("/cabinetmachine/cabinetmachine/Bookmarked/"+id)

export const getaddress = (data) => get("/cabinetmachine/cabinetmachine/getaddress",data)

export  const ReverseGeocoding=(longitude,latitude) =>get("/cabinetmachine/cabinetmachine/ReverseGeocoding" +
    "?longitude="+latitude+"&latitude="+longitude
)
